package cn.tedu.music.admin.dao.persist.repository.impl;

import cn.tedu.music.admin.dao.persist.mapper.PlayListMapper;
import cn.tedu.music.admin.dao.persist.repository.IPlayListRepository;
import cn.tedu.music.admin.pojo.vo.ListTopVO;
import cn.tedu.music.admin.pojo.vo.PlayListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PlayListRepositoryImpl implements IPlayListRepository {
    @Autowired
    PlayListMapper playListMapper;
    @Override
    public List<PlayListVO> getPlayList() {
        return playListMapper.getPlayLists();
    }

    @Override
    public ListTopVO getListTop() {
        return playListMapper.getListTop();

    }
}
